﻿@model IEnumerable<AgendaDoEstudante.Models.Lista>

@{
    ViewBag.Title = "Index";
}

<h2>LISTAS</h2>
<br />

<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Nome)
        </th>
        <th>
            Opções
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Nome)
        </td>
        <td>
            <ul class="phrp">
            @Html.ActionLink("Editar", "Edit", new { id=item.ListaId })
            @Html.ActionLink("Itens", "Details", new { id = item.ListaId })
            @Html.ActionLink("Excluir", "Delete", new { id=item.ListaId })
                </ul>
        </td>
    </tr>
}

</table>


    <ul class="phrp">
    <li>@Html.ActionLink("Nova Lista", "Create")</li>
        </ul>
